<include file="Public/head" />
<script>
	function sendMsg(order_id){
	    $.post("/Finance/send_msg",{"order_id":order_id},function(data){
	    	if(data.code!==200){
	    		shibai_alert(data.msg,1500);
	    	}
	    	btn_alert("发送成功",1000);
	    },"json");
	}
</script>
</head>
<body>
  <include file="Public/common_header" />

  <div class="mian">
    <include file="Public/sidebar" menu='cwgl.fk' />

    <div class="mianR">
			<h3 class="yonghu">付款</h3>
			<div class="yuyue">
				<ul>
					<li class="yuCurrent">待付首款</li>
					<li>待付尾款</li>
					<li>付款成功</li>
					<li>付款关闭</li>
				</ul>
			</div>
			<div class="listBox">

            </div>
		</div>
	</div>
	<div class="clear"></div>
  </div>

  <script>
  var Finance=(function(){
        function _post(post_data){
            var t = post_data.t;            
            var url = (post_data.url==undefined?'/Finance/pay_list':post_data.url);
            $.post(url,post_data,function(data){
                $('.listBox').html(data);
            });  
        }
        
        function _init(){
            $('.yuyue li').click(function(){
                _post({t:$(this).index()});
            });
            _post({t:0});
        }

        _init(); 

        function _get(t,p,start_time,end_time,business_status,car_source,la,keyword){
            _post({t:t,p:p,start_time:start_time,end_time:end_time,business_status:business_status,car_source:car_source,la:la,keyword:keyword});
        }
        return {get:_get}
  })();


</script>
 <include file="Public/foot" />